/*
 * @Author: bclz
 * @Date: 2022-02-08 15:32:38
 * @LastEditTime: 2022-02-08 16:50:53
 * @LastEditors: szk
 * @Description: no description
 */

const data = [];
for (let i = 0; i < 24; i++) {
  data.push(i + 1);
}

export const option = {
  xAxis: {
    type: 'category',
    data: data,
  },
  yAxis: {
    type: 'value',
    axisLine: { show: true },
  },
  legend: {
    data: ['安全', '预警', '报警'],
  },
  color: ['#87cf86', '#e79c27', '#f26665'],
  series: [
    {
      name: '安全',
      type: 'bar',
      stack: 'Total',
      label: {
        show: true,
        position: 'top',
      },
      data: [9, 8, 10, '-', '-', 8, 15, 9, '-', '-', '-'],
    },
    {
      name: '预警',
      type: 'bar',
      stack: 'Total',
      label: {
        show: true,
        position: 'top',
      },
      data: ['-', '-', '-', 8, 9, '-', '-', '-', 11, 22, 13],
    },
    {
      name: '报警',
      type: 'bar',
      stack: 'Total',
      label: {
        show: true,
        position: 'top',
      },
      data: [],
    },
  ],
};
